<?php


use Illuminate\Http\Request;
use Illuminate\Routing\Router;

Route::group([
    'middleware' => 'api',
], function (Router $router) {

    $router->get('me', 'AuthController@me');

    $router->post('login', 'AuthController@login')->name('login');
    //手机号 短信验证
    $router->post("login_by_cell",'AuthController@loginByCell');
    $router->post("get_login_code",'AuthController@getLoginCode');

    // 找回密码相关
    $router->post('sms/verification/codes', 'PasswordController@getVerificationCode');
    // 验证验证码后进入重置页面
    $router->post('sms/codes/verify', 'PasswordController@verify');
    // 重置密码
    $router->put('passwords', 'PasswordController@reset');

    // 退出登录
    $router->post('logout', 'AuthController@logout');

});

